from django import forms
from captcha.fields import CaptchaField


class RegisterForm(forms.Form):
    """
        注册表单
    """

    email = forms.EmailField(label='邮箱', required=True)
    # 必须传值 最小长度为5
    password = forms.CharField(label='密码', required=True, min_length=5)
    captcha = CaptchaField(error_messages={'invalid': '验证码错误！'})
